<include file="Public:header"/><body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
    <div class="simple_table">
        <form method="post" class="J_ajaxForm"  action="{:U('News/catepost')}">
            <input type="hidden" name="action" value="{$do.do}"/>
            <input type="hidden" name="id" value="{$cate.id}"/>
            <table width="100%">
                <tr>
                    <td>名称: <input type="text" class="input" value="{$cate.title}" name="title" /> 排序: <input type="text" name="sort" value="{$cate.sort}" class="input" size="10"/>
                        <select name="status" id="">
                            <option value="1" <eq name="cate.status" value="1">selected</eq>>审核</option>
                            <option value="0" <eq name="cate.status" value="0">selected</eq>>不审核</option>
                        </select>
                        <button type="submit" class="btn btn_submit mr10 J_ajax_submit_btn">{$do.doname}类别</button></td>
                </tr>
            </table>
        </form>
    </div>

    <form name="myform" action="{:U('News/catesort')}" method="post" class="J_ajaxForm">
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td width="10%">排序</td>
                <td width="10%">审核</td>
                <td>栏目名称</td>
                <td width="20%">管理操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td><input name="sort[{$vo.id}]" type="text" size="3" value="{$vo.sort}" class="input"></td>
                    <td>{$vo.status|showStatus}</td>
                    <td>{$vo.title}</td>
                    <td><a href="{:U('News/catelist',array('cateid'=>$vo[id],'action'=>'edit'))}">修改</a> <a class="J_ajax_del" data-msg="确定删除该类别吗?" href="{:U('News/catedelete',array('cateid'=>$vo['id']))}">删除</a></td>
                </tr>
            </foreach>
        </table>
        <div class="p10"><div class="pages"> {$Page} </div> </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">排序</button>
            </div>
        </div>
    </div>
</div>
</form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>